package com.myopen.shared;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import com.jfinal.kit.JsonKit;
import com.jfinal.plugin.activerecord.Record;
import com.myopen.config.ConstConfig;
import com.myopen.kit.RequestKit;

public class CmsShared {

	public void list(Integer page,Integer limit) {
		if(limit>100) {
			limit=100;
		}
		
		HttpServletRequest request=RequestKit.getTl().get();
		HttpSession session=request.getSession();
		Record website=(Record)session.getAttribute(ConstConfig.SESSION_WEBSIT);
		System.out.println(JsonKit.toJson(website));
	}
}
